import http from '@/services/http';

export function getFilterList() {
  return http.get<Requestor.Response<Requestor.FilterResponse[]>>(
    '/api/admin/PointsWithdrawal/filter/list',
  );
}
export function getList<T>(params: PointsWithdrawalApi.ListParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/PointsWithdrawal/list', {
    data: params,
  });
}
export function getInfo<T>(params: PointsWithdrawalApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/PointsWithdrawal/info', {
    params,
  });
}
export function updateStatus(params: PointsWithdrawalApi.StatusParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/PointsWithdrawal/update/status', {
    data: params,
  });
}
